package com.hm.scala.ext

object ExtTest {
  
  def main(args: Array[String]): Unit = {
    
    var s = new Son;
    s.doEat("大米饭")
    s.parentName()
    
    var p = new Parent
    p.doEat("西瓜")
    
    var e:Parent = new Son
    e.doEat("黄瓜")
  }
}